package socket;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;

public class Cliente {

	  public static void main(String[] args){
	      SocketCliente cliente = new SocketCliente("",5555);
		cliente.setTitle("Programa Cliente");
	      WindowListener l = new WindowAdapter() {
	              public void windowClosing(WindowEvent e) {
	                      System.exit(0);
	              }
	      };

	      cliente.addWindowListener(l);
	      cliente.pack();
	      cliente.setVisible(true);
	      cliente.listenSocket();
	}

}
